package com.bdqn.zhang.service.impl;

import com.bdqn.zhang.entity.User;
import com.bdqn.zhang.service.LoginService;

import java.util.List;

public class LoginServiceImpl implements LoginService {
    @Override
    public void execute() {
        List<User> users = StartServiceImpl.users;
        for (int i = 0; i < users.size() ; i++) {
            if("admin".equals(users.get(i).getUsername()) &&
                    "123456".equals(users.get(i).getPassword())){
                User u = users.get(i);
                break;
            }
        }

    }



}
